package hxy.cupb.mapper;

import hxy.cupb.entity.RoleEntity;
import hxy.cupb.entity.UserEntity;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Optional;

@Mapper
public interface UserMapper {
    List<UserEntity> findAll();

    UserEntity loadUserByUserName(String userName);

    Optional<UserEntity> selectUserByIdOptional(String userName);

    List<RoleEntity> getUserRolesByUid(int id);
}
